package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐的业务层接口
public interface SetmealService {

    //分页查询套餐
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //套餐新增
    void save(Setmeal setmeal);

    //修改套餐之回显套餐
    Setmeal findById(Long id);

    //修改套餐
    void update(Setmeal setmeal);

    //批量启停售
    void stopBuy(Integer status, List<Long> ids);

    //批量删除
    String delete(List<Long> ids);

    //点餐端根据分类id和状态码查询套餐列表
    List<Setmeal> findByCategoryAndStatus(Long categoryId);

    //点餐端点击套餐图片显示套餐信息
    List<Dish> findBySetmealAndDish(Long id);
}
